home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global EndPt, loop, ContactPt, result, CentreX, CentreY, A1X, A1Y, A2X, A2Y, A3X, A3Y
- cursor(200)
- if loop = EndPt then
- AfterTest()
- exit
- end if
- set loop to loop + 1
- if loop = value(ContactPt) then
- if value(result) = 0 then
- puppetSound("NoReact")
- end if
- if value(result) = 1 then
- puppetSound("React")
- end if
- if value(result) = 2 then
- puppetSound("HExchange")
- end if
- end if
- set the locH of sprite 6 to integer(CentreX + (50 * line loop of A1X))
- set the locV of sprite 6 to integer(CentreY + (55 * line loop of A1Y))
- set the locH of sprite 7 to integer(CentreX + (50 * line loop of A2X))
- set the locV of sprite 7 to integer(CentreY + (55 * line loop of A2Y))
- set the locH of sprite 8 to integer(CentreX + (50 * line loop of A3X))
- set the locV of sprite 8 to integer(CentreY + (55 * line loop of A3Y))
- puppetTempo(10 * (value(Energy) + 1))
- go(the frame)
- end
-